<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Title</title>
    <script src="../js/vue.js"></script>
</head>

<body>
    <div id="app">
        <h2 :style="{fontSize:finalSize}">动态绑定style</h2>
        <h2 :style="{fontSize:intSize+'px',color:finalColor}">{{message}}</h2>
    </div>

    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                 message:'我是你爹!' ,
                 finalSize:'60px',
                 intSize:200,
                 finalColor:'red',
            },
            methods: {}
        });
    </script>
</body>

</html>